import request from '@/utils/request'

// 查询会员排行榜列表
export function listMemberTrainChart(query) {
  return request({
    url: '/member/memberTrainChart/list',
    method: 'get',
    params: query
  })
}

// 查询会员排行榜详细
export function getMemberTrainChart(id) {
  return request({
    url: '/member/memberTrainChart/' + id,
    method: 'get'
  })
}

// 新增会员排行榜
export function addMemberTrainChart(data) {
  return request({
    url: '/member/memberTrainChart',
    method: 'post',
    data: data
  })
}

// 修改会员排行榜
export function updateMemberTrainChart(data) {
  return request({
    url: '/member/memberTrainChart',
    method: 'put',
    data: data
  })
}

// 删除会员排行榜
export function delMemberTrainChart(id) {
  return request({
    url: '/member/memberTrainChart/' + id,
    method: 'delete'
  })
}

// 刷新排行榜
export function refreshChart() {
  return request({
    url: '/member/memberTrainChart/refresh/chart',
    method: 'get'
  })
}
